<template>
	<view class="annunciate">
		<view class="title">
			<text>通 知</text>
			<text>公 告</text>
		</view>
		<view class="line"></view>
		<view class="details">
			<text v-for="item in listSize" :key="item.pnID">{{item.pnTitle}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "annunciate",
		props: {
			list: Array
		},
		computed: {
			listSize () {
				return this.list.slice(0,2)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.annunciate {
		margin-top: 46upx;
		padding: 0 30upx;
		display: flex;
		height: 70upx;
		align-items: center;
		>view {
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			height: 100%;
		}

		.title {
			position: relative;
			font-size: 26upx;
			color: #414141;
			font-weight: bold;
		}

		.line {
			margin: 0 20upx;
			width: 1upx;
			height: 68upx;
			background-color: #404040;
		}

		.details {
			flex: 1;
			color: #7f7f7f;
			font-size: 26upx;
			>text {
				width: 560upx;
			}
		}
	}
</style>
